package nc.bs.pub.action;

import nc.bs.framework.common.NCLocator;
import nc.bs.pub.compiler.AbstractCompiler2;
import nc.impl.so.m32.action.ApproveSaleInvoiceAction;
import nc.uapbd.vo.sever.ListenerSever;
import nc.vo.pub.BusinessException;
import nc.vo.pub.compiler.PfParameterVO;
import nc.vo.pubapp.pattern.exception.ExceptionUtils;
import nc.vo.so.m32.entity.SaleInvoiceVO;
//so
public class N_32_APPROVE extends AbstractCompiler2 {
	public String getCodeRemark() {
		return "  \n";
	}

	public Object runComClass(PfParameterVO vo) throws BusinessException {
		super.m_tmpVo = vo;

		ApproveSaleInvoiceAction action = new ApproveSaleInvoiceAction();
		SaleInvoiceVO[] saleInvoiceVOs= ((SaleInvoiceVO[]) vo.m_preValueVos);
		//NCLocator.getInstance().lookup(ListenerSever.class).saleInvoice(saleInvoiceVOs);
		try {
			return action.approve(this);
		} catch (Exception var4) {
			ExceptionUtils.marsh(var4);
			return null;
		}
	}
}
